//
//  UIImage+Enlarge.m
//  标题按钮
//
//  Created by 李贤立 on 16/5/22.
//  Copyright © 2016年 李贤立. All rights reserved.
//

#import "UIImage+Enlarge.h"

@implementation UIImage (Enlarge)
+ (UIImage *)loadAnOldImageName:(NSString *)imageName {
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 1024, 1024)];
    imageView.image = [UIImage imageNamed:imageName];
    imageView.contentMode = UIViewContentModeScaleAspectFill;
    return imageView.image;
}
+ (UIImage *)clipAnOldImageName:(NSString *)imageName WithCornerRadiu:(CGFloat)cornerRadiu {
    UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:imageName]];
    imageView.layer.cornerRadius = cornerRadiu;
    imageView.layer.masksToBounds = YES;
    return imageView.image;
}
@end
